const getters = {
  name: state => state.user.name,
  avatar: state => state.user.avater,
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 创建快捷访问，导出子模块的数据token
  userId: state => state.user.userInfo.userId,
  userName: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  companyId: state => state.user.userInfo.companyId,
  routes: state => state.permission.routes // 导出当前路由
}
export default getters
